package org.springtx.aspects;

import org.apache.log4j.Logger;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.Ordered;

@Aspect
public class MyAspect2 implements Ordered{

	private static Logger logger = Logger.getLogger(MyAspect1.class);
	
	@Before("execution(* org.springtx.service.*Service.*(..))")
	public void advice2()
	{
		logger.debug("切面2执行");
	}

	private int order;
	
	public void setOrder(int order) {
		this.order = order;
	}

	@Override
	public int getOrder() {
		return order;
	}
	
}
